<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>waterfall</title>
    <style>
    .waterfall-box {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;

        border: 1px solid red;
        margin-left: auto;
        margin-right: auto;
        width: 1000px;

    }
    .waterfall-box img {
        display: block;

        width: 200px;
        height: auto;
    }
    </style>
</head>
<body>
    <div class="waterfall-box">
        <img src="./imgs/1.png" alt="">
        <img src="./imgs/2.png" alt="">
        <img src="./imgs/3.png" alt="">
        <img src="./imgs/4.png" alt="">
        <img src="./imgs/5.png" alt="">
    </div>
</body>
</html>